# Contributor: knuxify <knuxify@gmail.com>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=chafa
pkgver=1.14.4
pkgrel=0
pkgdesc="Terminal graphics for the 21st century"
url="https://hpjansson.org/chafa"
arch="all"
license="LGPL-3.0-or-later"
makedepends="glib-dev freetype-dev libjpeg-turbo-dev tiff-dev librsvg-dev libwebp-dev"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
source="https://github.com/hpjansson/chafa/releases/download/$pkgver/chafa-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-gtk-doc \
		--without-imagemagick
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
826a26116584dac303d03c4dda0b2be30a97fb4bb818d39a37212ec38c35128e1bb2a6bd24dd0b3300c31832e7c99b0dc59c46107c7bb201ef279aadcb8c9326  chafa-1.14.4.tar.xz
"
